//
//  CATakeMoneyApi.m
//  LNH
//
//  Created by twentylx on 2018/2/11.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CATakeMoneyApi.h"

@implementation CATakeMoneyApi {
    NSString *_bankId;
    NSString *_money;
}

- (instancetype) initWithBankId:(NSString *) bankId Money:(NSString *) money {
    self = [super init];
    if (self) {
        _bankId = bankId;
        _money = money;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"bank_id":_bankId,
             @"money":_money,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@user/withdraw",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@user/withdraw",BASE_SERVICE_DOMAIN];
    
    
}

@end
